<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8"> 
	<title>Bootstrap 实例 - 水平表单</title>
	<link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">  
	<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
	<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
	<script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script>
	<script src="https://apps.bdimg.com/libs/angular-route/1.3.13/angular-route.js"></script>
</head>
<body ng-app="logapp" ng-controller="rootctrl" >

				<ul class="nav nav-tabs" style="margin:3% 15% 3% 13%">
				  <li class="active"><a href="#/login">{{tile}}</a></li>
				  <li><a href="#/register">{{tile2}}</a></li>
				</ul>

<div ng-view="">
 </div>
    
  <script type="text/ng-template" id="login.home.html">   
<form class="form-horizontal" role="form">
	<div class="form-group">
		<label for="firstname" class="col-sm-2 control-label" >名字</label>
		<div class="col-sm-7">
			<input type="text" class="form-control" id="firstname" 
				   placeholder="请输入名字" ng-model="username">
		</div>
		<div class="col-sm-3"></div>
	</div>
	<div class="form-group">
		<label for="lastname" class="col-sm-2 control-label">密码</label>
		<div class="col-sm-7">
			<input type="password" class="form-control" id="lastname" 
				   placeholder="请输入姓" ng-model="pwd">
		</div>
		<div class="col-sm-3"></div>
	</div>
	<div class="form-group">
		<div class="col-sm-offset-2 col-sm-10">
			<button type="button" class="btn btn-default" ng-click="loginbtn()">登录</button>
		</div>
	</div>
</form>
  </script>



 <script type="text/ng-template" id="register.home.html">   
<form class="form-horizontal" role="form">
	<div class="form-group">
		<label for="firstname" class="col-sm-2 control-label" >名字</label>
		<div class="col-sm-7">
			<input type="text" class="form-control" id="firstname" 
				   placeholder="请输入名字" ng-model="username">
		</div>
		<div class="col-sm-3"></div>
	</div>
	<div class="form-group">
		<label for="lastname" class="col-sm-2 control-label">密码</label>
		<div class="col-sm-7">
			<input type="password" class="form-control" id="lastname" 
				   placeholder="请输入姓" ng-model="pwd">
		</div>
		<div class="col-sm-3"></div>
	</div>
	<div class="form-group">
		<div class="col-sm-offset-2 col-sm-10">
			<button type="button" class="btn btn-default" ng-click="registerbtn()">注册</button>
		</div>
	</div>
</form>
  </script>

<script src="/ssm/bsea/js/app.js"></script>
  <script src="/ssm/bsea/js/controller/userController.js"></script>
   <script src="/ssm/bsea/js/service/userService.js"></script>
</body>
</html>